from markdown import markdown


def md2html(mdFile,htmlFile):

    file = open(mdFile,'r',encoding='utf-8').read()
    html = markdown(file)
    with open(htmlFile, 'w', encoding='utf-8') as file:
        file.write(html)

